import Vue from 'vue';
import Vuex from 'vuex';

// * modules 公用模块
import loading from '@/store/loading';
import userUnflod from '@/store/userUnflod';
import alert from '@/store/alert';

// *modules页面
import login from '@/views/login/module';
import restaurant from '@/views/restaurant/modules/index';
import language from '@/store/language';
import order from '@/views/order/modules/index';

// menu页面
import menu from '@/views/menu/module';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    loading,
    userUnflod,
    alert,
    login,
    menu,
    language,
    restaurant,
    order,
  },
});
